//
//  RegistrationTypeCell.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/4/20.
//  Copyright © 2020 QDSG. All rights reserved.
//

import UIKit

class RegistrationTypeCell: UITableViewCell {
    
    func updateData(vm: DepartmentViewModel.RowViewModel) {
        titleLabel.text = vm.departmentName
    }
    
    @IBOutlet weak var selectView: UIView!
    @IBOutlet weak var titleLabel: UILabel!
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        selectView.isHidden = !isSelected
        backgroundColor = selected ? .white : .clear
        titleLabel.font = selected ? .bold(16) : .regular(16)
        titleLabel.textColor = selected ? .textDark : .textLight
        // Configure the view for the selected state
    }
    
}
